//引入express模块创建服务器
const express = require('express');
//创建路由
const router = express.Router();
//引入indexCtrl模块
const ctrl = require('../ctrl/indexCtrl.js');
//首页
router.get('/',ctrl.showIndex);
router.post('/pagination',ctrl.pagination);
//导出router
module.exports = router;